let baseurl='http://1.188.81.110:8016'  //http://1.188.81.110:8016
let getLogin=function(parm,cb){
	return  uni.request({
			url: baseurl+'/ylzdjkfw/login/login',
			method:'POST',
			data:parm,
			header: {
				'content-type': 'application/x-www-form-urlencoded', 
			},
			success(res){
				cb(res)
			}
			})
}
let getncxxlist=function (cb){
	return uni.request({
					url: baseurl+'/ylzdjkfw/sjgl/ncxxlist',
					method:'POST',
					success(res){
						cb(res)
					}
			})
}
let getglqxxlist=function (parm,cb){
	return uni.request({
					url: baseurl+'/ylzdjkfw/sjgl/glqxxlist',
					method:'POST',
					data:parm,
					header: {
						'content-type': 'application/x-www-form-urlencoded', 
					},
					success(res){
						cb(res)
					}
			})
}
let getsydklist=function (parm,cb){
	return uni.request({
					url: baseurl+'/ylzdjkfw/ylzd/sydk',
					method:'POST',
					header: {
						'content-type': 'application/x-www-form-urlencoded', 
					},
					data:parm,
					success(res){
						cb(res)
					}
			})

}
let getsydkjc=function (parm,cb){
	return uni.request({
					url: baseurl+'/ylzdjkfw/sbgl/sydkjc',
					method:'POST',
					header: {
						'content-type': 'application/x-www-form-urlencoded', 
					},
					data:parm,
					success(res){
						cb(res)
					}
			})

}
let getdkxxlist=function (parm,cb){
	return uni.request({
					url: baseurl+'/ylzdjkfw/sjgl/dkxxlist',
					method:'POST',
					header: {
						'content-type': 'application/x-www-form-urlencoded', 
					},
					data:parm,
					success(res){
						cb(res)
					}
			})

}
let getspxxlist=function (parm,cb){
	return uni.request({
					url: baseurl+'/ylzdjkfw/sbgl/spxxlist',
					method:'POST',
					header: {
						'content-type': 'application/x-www-form-urlencoded', 
					},
					data:parm,
					success(res){
						cb(res)
					}
			})

}

let getxgmm=function (parm,cb){
	return uni.request({
					url: baseurl+'/ylzdjkfw/login/xgmm',
					method:'POST',
					header: {
						'content-type': 'application/x-www-form-urlencoded', 
					},
					data:parm,
					success(res){
						cb(res)
					}
			})

}

let getsblbcxbyid=function (parm,cb){
	return uni.request({
					url: baseurl+'/ylzdjkfw/sbgl/sblbcxbyid',
					method:'POST',
					header: {
						'content-type': 'application/x-www-form-urlencoded', 
					},
					data:parm,
					success(res){
						cb(res)
					}
			})

}

let gettpcx=function (parm,cb){
	return uni.request({
					url: baseurl+'/ylzdjkfw/img/tpcx',
					method:'POST',
					header: {
						'content-type': 'application/x-www-form-urlencoded', 
					},
					data:parm,
					success(res){
						cb(res)
					}
			})

}

let getdkyl=function (parm,cb){
	return uni.request({
					url: baseurl+'/ylzdjkfw/ylzd/dkyl',
					method:'POST',
					header: {
						'content-type': 'application/x-www-form-urlencoded', 
					},
					data:parm,
					success(res){
						cb(res)
					}
			})

}

let getdkylxqcx=function (parm,cb){
	return uni.request({
					url: baseurl+'/ylzdjkfw/ylzd/dkylxqcx',
					method:'POST',
					header: {
						'content-type': 'application/x-www-form-urlencoded', 
					},
					data:parm,
					success(res){
						cb(res)
					}
			})

}

let getsjcxsjd=function (parm,cb){
	return uni.request({
					url: baseurl+'/ylzdjkfw/sbgl/sjcx_sjd',
					method:'POST',
					header: {
						'content-type': 'application/x-www-form-urlencoded', 
					},
					data:parm,
					success(res){
						cb(res)
					}
			})

}
let getjwcx=function (parm,cb){
	return uni.request({
					url: baseurl+'/ylzdjkfw/sbgl/jwcx',
					method:'POST',
					header: {
						'content-type': 'application/x-www-form-urlencoded', 
					},
					data:parm,
					success(res){
						cb(res)
					}
			})

}


let getsjcxxq=function (parm,cb){
	return uni.request({
					url: baseurl+'/ylzdjkfw/sbgl/sjcx_xq',
					method:'POST',
					header: {
						'content-type': 'application/x-www-form-urlencoded', 
					},
					data:parm,
					success(res){
						cb(res)
					}
			})

}
let getwtlist=function (parm='',cb){
	return uni.request({
					url: baseurl+'/ylzdjkfw/zdfw/wtlist',
					method:'POST',
					header: {
						'content-type': 'application/x-www-form-urlencoded', 
					},
					data:parm,
					success(res){
						cb(res)
					}
			})

}
let getwthflr=function (parm='',cb){
	return uni.request({
					url: baseurl+'/ylzdjkfw/zdfw/wthflr',
					method:'POST',
					header: {
						'content-type': 'application/x-www-form-urlencoded', 
					},
					data:parm,
					success(res){
						cb(res)
					}
			})

}

let getwtlr=function (parm='',cb){
	return uni.request({
					url: baseurl+'/ylzdjkfw/zdfw/wtlr',
					method:'POST',
					header: {
						'content-type': 'application/x-www-form-urlencoded', 
					},
					data:parm,
					success(res){
						cb(res)
					}
			})

}


let getimgtest=function (parm='',cb){
	console.log(78,parm)
	return  uni.uploadFile({
			url: baseurl+'/ylzdjkfw/upload/test', //仅为示例，非真实的接口地址
			filePath: parm[0],
			name: 'file',
			success: (res) => {
				var res = JSON.parse(res.data)
				cb(res)
				
			}

})
}
export {getLogin,getncxxlist,getglqxxlist,getsydklist,
getsydkjc,getdkxxlist,getspxxlist,getxgmm,getsblbcxbyid,
gettpcx,getdkyl,getdkylxqcx,getjwcx,getsjcxsjd,getsjcxxq,
getwtlist,getwthflr,getwtlr,getimgtest}